<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <html>
      <head><title>document</title></head>
      <body><h1>This is a document</h1>
      	<table>
      	<tr>
      		<td>
      			<xsl:value-of select="//title" />
      		</td>
      	</tr>
      	<xsl:apply-templates select="//version"/>
		<xsl:template match="@vernum">   
    			<h2>Version number: <xsl:value-of select="." /></h2>
	  		</xsl:template>
      	</table>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>
